package beavers.studio.golfberry.screens;

public class ScreenFactory {
	//Inaccessible constructor
	private ScreenFactory() {}

	public static GolfScreen createScreen(GolfScreen.ID id) {
		//Default screen
		GolfScreen CreatedScreen = null;
		
		//Based on id
		if (id == GolfScreen.ID.HOME)			CreatedScreen = new HomeScreen();
		else if (id == GolfScreen.ID.GROUP)		CreatedScreen = new GroupScreen();
		else if (id == GolfScreen.ID.MAP)		CreatedScreen = new MapScreen();
		else if (id == GolfScreen.ID.PIC)		CreatedScreen = new PictureScreen();
		else if (id == GolfScreen.ID.QUIZ)		CreatedScreen = new QuizScreen();
		else if (id == GolfScreen.ID.SCORE)		CreatedScreen = new ScoreScreen();
		else if (id == GolfScreen.ID.REGISTER)	CreatedScreen = new RegisterScreen();
		
		//Return the screen
		return CreatedScreen;
	}
}
